package com.zmm.zebulon.module.system.biz.convert.dict;

import com.zmm.zebulon.common.pojo.PageResult;
import com.zmm.zebulon.module.system.biz.controller.admin.dict.vo.type.*;
import com.zmm.zebulon.module.system.biz.dal.dataobject.dict.DictTypeDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * description: 字典 类型 转换
 *
 * @author zebulon
 * package com.zmm.zebulon.module.system.biz.convert.dict
 * name: DictTypeConvert
 * date 2024/1/8 23:33
 */
@Mapper
public interface DictTypeConvert {

    DictTypeConvert INSTANCE = Mappers.getMapper(DictTypeConvert.class);

    PageResult<DictTypeRespVO> convertPage(PageResult<DictTypeDO> bean);

    DictTypeRespVO convert(DictTypeDO bean);

    DictTypeDO convert(DictTypeCreateReqVO bean);

    DictTypeDO convert(DictTypeUpdateReqVO bean);

    List<DictTypeSimpleRespVO> convertList(List<DictTypeDO> list);

    List<DictTypeExcelVO> convertList02(List<DictTypeDO> list);

}
